package main

import (
	"fmt"
)

func main() {
	//

	var num1 int32 = 32
	var num2 int64 = 64

	var arrayInt [3]int64

	arrayInt[0] = 1

	//arrayInt[1]=num1
	arrayInt[1] = int64(num1)
	arrayInt[2] = num2

	//arrayInt[4]=2

	test(arrayInt)
	for i, v := range arrayInt {
		fmt.Println(i, v)
	}

	test2(&arrayInt)
	for i, v := range arrayInt {
		fmt.Println(i, v)
	}
}

func test(arr [3]int64) {
	arr[2] = 12
}

func test2(arr *[3]int64) {
	arr[2] = 12
}
